var crypto = require('../db/crypto'),
	db = require('../db/db');

module.exports.selectPassword = function(name,callback){
	var query = 'select * from user where name = "' + name + '"';
	db.poolSelectOne(query,function(err,data){
		callback(err,data);
	});
}


module.exports.checkPassword = function(userInputPassword,dbPassword){
	var vool;
	if (userInputPassword==dbPassword) {
		vool = true;
	} else {
		vool = false;
	}
	return vool;
}

module.exports.setCookie = function(){
	
}